import { NLayout, NLayoutContent, NLayoutHeader, NLayoutSider } from "naive-ui";
import { RouterView } from "vue-router";



export default defineComponent({
    name: 'Layout',
    setup() {

    },
    render() {
        return (
            <NLayout style={{height:'100%'}}>
                <NLayoutHeader style={{height: '65px'}}>
                    头部
                </NLayoutHeader>
                <NLayout hasSider position='absolute' style={{top:'65px'}}>
                    <NLayoutSider>边部</NLayoutSider>
                    <NLayoutContent nativeScrollbar={false} style={{padding: '16px 22px'}}>
                        <RouterView key={this.$route.fullPath}></RouterView>
                    </NLayoutContent>
                </NLayout>
            </NLayout>
        )
    }
})